//
//  HSQKeyBoardTextView.h
//  LiTianDecoration
//
//  Created by administrator on 2018/7/24.
//  Copyright © 2018年 administrator. All rights reserved.
//

#import <UIKit/UIKit.h>

@class HWEmotion;

typedef void(^TextHeightChangedBlock)(CGFloat textHeight);

@interface HSQKeyBoardTextView : UITextView

/**
 *  textView最大行数
 */
@property (nonatomic, assign) NSUInteger maxNumberOfLines;

/**
 文字大小
 */
@property (nonatomic, strong) UIFont *textFont;

/**
 *  文字高度改变block → 文字高度改变会自动调用
 *  block参数(text) → 文字内容
 *  block参数(textHeight) → 文字高度
 */
@property (nonatomic, strong) TextHeightChangedBlock textChangedBlock;

- (void)textValueDidChanged:(TextHeightChangedBlock)block;

- (void)insertEmotion:(HWEmotion *)emotion;

- (NSString *)fullText;

@end
